package com.itheima.service;

import com.itheima.clients.UserClient;
import com.itheima.mapper.OrderMapper;
import com.itheima.pojo.Order;
import com.itheima.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class OrderService {
    @Autowired
    private OrderMapper orderMapper;


    /**
     * 根据订单id查询订单
     */
    public Order findOrderById(Long id) {

        //走到这步说明查询到数据了返回order对象

        //返回用户
        return orderMapper.findOrderById(id);
    }
}
